package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.base.BaseRespVo;
import com.doge.service.admin.collect.CollectService;
import com.doge.service.admin.collect.CollectServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2-wechat-mall
 * @description: 会员收藏
 * @author: zhu lei
 * @create: 2021-11-30 15:43
 **/
@RequestMapping("/admin/collect")
@RestController
public class CollectController {
    @Autowired
    CollectServiceImpl collectService;
    @RequestMapping("list")
    public BaseRespVo collectList(Integer userId, Integer valueId, BaseParam baseParam) {
        BaseData baseData = collectService.collectList(userId, valueId, baseParam);
        return BaseRespVo.ok(baseData);
    }
}